/**
 * Copyright (c) 2020-2022 宁波哥爱帮科技有限公司
 */
package cn.grab.fispservice.system.model;

import cn.grab.fispapi.system.dto.SysDictDTO;
import cn.grab.fispapi.system.vo.SysDictVO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fontana.db.mapper.BaseModelMapper;
import com.fontana.db.model.BaseLogicDelModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 字典表实体类
 *
 * @author Auto
 * @since 2023-01-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
public class SysDict extends BaseLogicDelModel {

    private static final long serialVersionUID = 1L;

    /**
     * 字典id
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 字典名称
     */
    @TableField(value = "dict_name")
    private String dictName;
    /**
     * 字典编码
     */
    @TableField(value = "dict_code")
    private String dictCode;
    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 字典类型(0: string,1: number,2: boolean)
     */
    @TableField(value = "type")
    private Integer type;

    @Mapper
    public interface SysDictModelMapper extends BaseModelMapper<SysDictDTO, SysDict, SysDictVO> {
    }

    public static final SysDictModelMapper INSTANCE = Mappers.getMapper(SysDictModelMapper.class);

}
